package C;

import java.util.Scanner;

public class C49 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String line = sc.nextLine();
        System.out.println(getResult(line));
    }

    public static String getResult(String line){
        String res = line;
        for (int i=26;i>=1;i--) {
//            String key = String.valueOf((char)('a'+i-1));
            String key = i>9? (i+"*") : String.valueOf(i);
            String word = String.valueOf((char)(i-1+'a'));
            res = res.replace(key,word);
            System.out.println(res);
        }

        return res;
    }
}
